<div class="contentBox" id="forms">
            <div class="contentBoxTop">
              <h3>Form Add Category</h3>
            </div>
            <div class="innerContent" id="box-1">
                <?php 
                $select = '';
                foreach ($get_one as $category) { ?>
              <form id="form1" name="form1" method="post" action="">
                Category Name
                <br />
                <label class="smallInput">
                    <input name="txtname" type="text" size="28" value="<?php echo $category['cate_name'];?>"/>
                  </label>
                <p>Parent <br />
                  <label  class="smallInput">
                     
                      <select name="parent" style="width: 170px;">
                           
                          <option value="0">--No parent--</option>
                          <?php foreach ($list_cate as $cate) {?>
                          <?php  if($category['cate_parent']==$cate['cate_id']) 
                                      {
                                          $select = 'selected="selected"';
                                      }
                                      else
                                      {
                                          $select ='';
                                      }
                                 if($category['cate_id'] != $cate['cate_id']) 
                                {?>
                                    <option value="<?php echo $cate['cate_id'];?>" <?php  echo $select; ?>><?php echo $cate['cate_name'] ;?></option>
                          <?php }} ?>
                      </select>
                  </label>
                  </p>
                  
                
                <p>
			<input name="" type="image" src="<?php echo $baseURL;?>/publics/admin/images/bt_submit.gif" />
                </p>
              </form>
                <?php } ?>
            </div><!--end of #box-1-->
            <div class="innerContent" id="box-2" style="display:none">
            Box-2 content goes here
            </div><!--end of #box-2-->
            
          </div>
<hr />
         
          <div class="errorBox"><div class="errorBoxTop">&nbsp;</div>
              <div class="msgBoxContent errorIcon">
                <p>Error. Category add failed. </p>
                <p><?php echo form_error("txtname");?></p>
                <p><?php echo form_error("txtpass");?></p>
                <p><?php echo form_error("txtemail");?></p>
                <p><?php echo isset($error) && $error != "" ? $error : ""; ?></p>
              </div>
          </div>
          <div class="successBox">
          <div class="successBoxTop">&nbsp;</div>
              
          </div>
          
          <hr />
